/*
 * Created on 2008-3-6
 *
 */
package jacky.lanlan.song.extension.struts.resource;

import java.io.*;

/**
 * 代表一个可以下载的资源。
 * 
 * @author Jacky.Song
 */
public interface Downloadable {

	/**
   * Returns the content type of the stream to be downloaded.
   * 
   * @return The content type of the stream.
   */
	String getContentType();

	/**
   * Returns an input stream on the content to be downloaded. This stream will
   * be closed by the <code>DownloadAction</code>.
   * 
   * @return The input stream for the content to be downloaded.
   */
	InputStream getInputStream() throws IOException;
	
	/**
	 * 下载文件名。
	 */
	String getName();
}
